package com.ray.depot.service;

import com.ray.depot.table.dto.StockDetailSerializeDto;
import com.ray.depot.table.entity.StockDetailSerialize;
import com.zjhc.flyhong.common.function.operator.LoginUser;
import com.zjhc.flyhong.common.function.operator.PageDto;
import com.zjhc.flyhong.common.web.Result;

public interface StockDetailSerializeService {

	/**
	 * 新增
	 * @param params
	 * @param user
	 * @return
	 */
	Result<Object> addStockDetailSerialize(StockDetailSerialize params, LoginUser user);
	
    /**
     * 查询
     * @param id
     * @param user
     * @return
     */
	StockDetailSerialize queryStockDetailSerialize(String id, LoginUser user);
	
    /**
     * 修改
     * @param params
     * @param user
     * @return
     */
	Result<Object> updateStockDetailSerialize(StockDetailSerialize params, LoginUser user);
	
    /**
     * 删除
     * @param id
     * @param user
     * @return
     */
	Result<Object> deleteStockDetailSerialize(String id, LoginUser user);
	
   /**
    * 查询
    * @param params
    * @param page
    * @param user
    * @return
    */
	PageDto<StockDetailSerialize> queryStockDetailSerialize(StockDetailSerialize params, PageDto<StockDetailSerialize> page, LoginUser user);
    /**
     * 查询
     * @param params
     * @param page
     * @param user
     * @return
     */
	PageDto<StockDetailSerializeDto> querySelectStockDetailSerialize(StockDetailSerializeDto params, PageDto<StockDetailSerializeDto> page, LoginUser user);

	 /**
     * 查询资产详情
     * @param materialId
     * @param serializaNo
     * @param warchouseId
     * @return
     */
	StockDetailSerialize queryDetailStockSerialize(String materialId, String serializaNo, String warchouseId);
	/**
	 * 出库
	 * @param stockSerialize
	 * @param user
	 */
	void detailSerializeOut(StockDetailSerialize stockSerialize, LoginUser user);

}
